package com.demo.controller;

import com.demo.model.SUsers;
import org.springframework.web.bind.annotation.*;

import java.util.Date;

/**
 * @version 1.0
 * @Description:
 * @author: luobiao
 * @Date 2022/7/13 0:45
 */
@RestController()
@RequestMapping("/user")
public class UserController {
    @PostMapping("/save")
    private void saveUser(@RequestBody SUsers user){
        user.setCrtTime(new Date());
        //userMapper.insert(user);
    }

    @GetMapping("getUserList")
    private Object getUserList(){
        return new Object();
        //return userMapper.selectUserList(new HashMap<>());
    }
}
